\hypertarget{carpetas_8h}{
\section{/Users/carloshergar/optica/Plasmas/rana-pic/trunk/include/carpetas.h File Reference}
\label{carpetas_8h}\index{/Users/carloshergar/optica/Plasmas/rana-pic/trunk/include/carpetas.h@{/Users/carloshergar/optica/Plasmas/rana-pic/trunk/include/carpetas.h}}
}
This library provides a mechanism to generate folders each time the program is ran. The outout files will be put in those folders.  


{\tt \#include $<$stdio.h$>$}\par
{\tt \#include $<$string$>$}\par
\subsection*{Functions}
\begin{CompactItemize}
\item 
int \hyperlink{carpetas_8h_ca4ee6d20f0dba7d12a73daea410f690}{ExisteFichero} (char $\ast$nombreFichero)
\item 
int \hyperlink{carpetas_8h_fe04a9b59b6258acf1c277c43b52dba9}{CrearCarpeta} (int LIMITE\_\-FICHEROS)
\end{CompactItemize}


\subsection{Detailed Description}
This library provides a mechanism to generate folders each time the program is ran. The outout files will be put in those folders. 

\begin{Desc}
\item[Author:]Carlos Hernández García $<$\href{mailto:carloshergar@usal.es}{\tt carloshergar@usal.es}$>$ \end{Desc}
\begin{Desc}
\item[Date:]Fri Apr 10 2009\end{Desc}
Copyright (c) 2009 Carlos Hernández García

Carlos Hernández García \par
 $<$\href{mailto:carloshergar@usal.es}{\tt carloshergar@usal.es}$>$ \par
 Universidad de Salamanca \par
 Plaza de la Merced s/n \par
 E-37008 Salamanca, SPAIN \par
 

\subsection{Function Documentation}
\hypertarget{carpetas_8h_fe04a9b59b6258acf1c277c43b52dba9}{
\index{carpetas.h@{carpetas.h}!CrearCarpeta@{CrearCarpeta}}
\index{CrearCarpeta@{CrearCarpeta}!carpetas.h@{carpetas.h}}
\subsubsection[{CrearCarpeta}]{\setlength{\rightskip}{0pt plus 5cm}int CrearCarpeta (int {\em LIMITE\_\-FICHEROS})}}
\label{carpetas_8h_fe04a9b59b6258acf1c277c43b52dba9}


This function creates the new folder with permissions (0777). The outputs of the program will be held in it. The name of the folder is $<$foldername$>$\#, where \# is the number that corresponds to the new folder \begin{Desc}
\item[Returns:]1: if it is correctly created, 0: it can not be created because exceeds the limit of folders \end{Desc}
\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em LIMITE\_\-FICHEROS}]maximun number of folders that we are going to create \end{description}
\end{Desc}
\hypertarget{carpetas_8h_ca4ee6d20f0dba7d12a73daea410f690}{
\index{carpetas.h@{carpetas.h}!ExisteFichero@{ExisteFichero}}
\index{ExisteFichero@{ExisteFichero}!carpetas.h@{carpetas.h}}
\subsubsection[{ExisteFichero}]{\setlength{\rightskip}{0pt plus 5cm}int ExisteFichero (char $\ast$ {\em nombreFichero})}}
\label{carpetas_8h_ca4ee6d20f0dba7d12a73daea410f690}


This function looks if a folder exists \begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em nombreFichero}]name of the folder we are looking for \end{description}
\end{Desc}
